package com.mmy.fta.usercenter.repository;

import com.mmy.fta.usercenter.entity.ShipperInfoEntity;
import com.mmy.fta.usercenter.entity.ShipperMembershipEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ShipperInfoEntityMapper {
    int insert(ShipperInfoEntity record);

    int insertSelective(ShipperInfoEntity record);

    ShipperInfoEntity selectByPrimaryKey(Long id);

    ShipperInfoEntity selectByIdentityNo(String IdentityNo);

    int updateByPrimaryKeySelective(ShipperInfoEntity record);

    int updateByPrimaryKey(ShipperInfoEntity record);

    String queryShipperPhoneNumber(String shipperIdNo);

    int updateNormalMemberShipStatus(@Param("openId")String openId, @Param("times")int times);

    int updateShipperCargoTimesDeduct(String openId);

    int updateDriverCargoTimesAdd(String openId);

    void addShipperSendCargoTimes(String openId);

    ShipperMembershipEntity selectShipperMemberByOpenId(String openId);
}